package edu.scau.DAO_mode.dao;
import java.util.List;

import edu.scau.DAO_mode.model.User;
public interface UserDao {
    public boolean add (User user) throws Exception; //新增一条user表中记录
    public boolean delete(User user) throws Exception;//删除一条记录
    public boolean update(User user) throws Exception;//修改一条记录
    public boolean find(String username) throws Exception;//根据用户名查找一条记录
    public User returnUser(String username) throws Exception;//根据用户名返回一条记录
    public List<User> findall() throws Exception;//返回user表所有数据
    public void rsClose() throws Exception;
    public void stateClose() throws Exception;
}
